package cn.getech.data.development.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;

/**
 * 表统计信息
 */
@Data
@TableName("bdp_table_statistics")
public class TableStatistics implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 表id
     */
    @TableField("table_id")
    private Integer tableId;

    /**
     * 表的记录行数
     */
    @TableField("rows_num")
    private Integer rowsNum;

    /**
     * 表的分区数
     */
    @TableField("partition_count")
    private Integer partitionCount;

    /**
     * 数据占内存大小
     */
    @TableField("total_size")
    private Double totalSize;

    /**
     * 统计时间
     */
    @TableField("count_time")
    private Date countTime;
}
